<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'dayAndTime.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		
		<jsp:useBean id="currentDate" scope="session" class="edu.ncut.vod.commonbeans.CurrentDate" />
	</head>

	<body>
		<fmt:setLocale value="zh" /><!-- http://www.duduwolf.com/wiki/2007/188.html -->
		<%-- output the date --%>
		<font color="${currentDate.color}">
			<bean:message key="dayAndTime.hello" />！<br>
			<bean:message key="dayAndTime.todayIs" />
			<!-- http://www.wangchao.net.cn/bbsdetail_1736693.html -->
			<fmt:formatDate type="both" value="${currentDate.date}" dateStyle="full" timeStyle="short" />
		</font>
		<br>
	</body>
</html>
